Generate a report that shows how all the folders and modules are linked

I would like to generate a report that shows how all the folders and modules are linked for every project folder and module in the CT folder. I've attached a copy of our folder/modules in our DOORS DBMS. Has anyone done this before that would be willing to share their dxl script?
SystemAdmin - Wed Nov 10 10:01:54 EST 2010